﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;

namespace DesignPatternSample
{
    public class DiagnosticSample
    {
        private  static  DiagnosticSource _diagnosticSource = new DiagnosticListener("System.Net.Http");
        public DiagnosticSample() { }
        public void Sample()
        {
            if (_diagnosticSource.IsEnabled("RequestStart"))
            {
                _diagnosticSource.Write("RequestStart","aja");
            }
        }
    }
}
